About Ink Objects
An ink object exists to provide color information about a shape. Each QuickDraw GX shape consists of a shape object, a style object, an ink object, and a transform object; the ink object associated with a shape defines the color with which the shape is drawn, as well as the transfer mode used to draw it.QuickDraw GX identifies an individual ink object through an ink reference. To obtain information about an ink object, you must send its reference as a parameter to a QuickDraw GX function (except that you can determine if two references identify the same ink object simply by comparing them for equality, and you can examine a reference to see if it is
nil
).Inks are device independent. Their information is not affected by the properties of the display device to which the shapes they modify are drawn. When it draws a shape on a device, QuickDraw GX approximates as closely as possible the color specified by the shape's ink. Device-specific color characteristics are accounted for by attaching color profiles to ink objects and by using a device's color profile when drawing; see the chapter "Colors and Color-Related Objects" in this book for more information.
Subtopics
- Ink Properties
- The Default Ink Object